'use strict'

const pg=require('pg');

let pasl=new pg.Pool({
    host:'127.0.0.1',
    port:5432,
    user:'wmm',
    password:'QDR124sushe',
    database:'wmm',
    max:8
})

;(async ()=>{
    let sqltext=`insert into`
    +`content(id,title,detail,add_time,update_time)`
    +`values($1,$2,$3,$4,$5)`;

    let tm=Date.now();

    let ret=await psql.query(sqltext,[

        `${tm}`,
        `${Math.random()}`,
        `测试内容`,
        tm,
        tm
    ])();


})